list = [1, 2, 3, 4]
it = iter(list)  # 创建迭代器对象

for e in it:
    print(e, end=" ")  # 输出迭代器的下一个元素
